package constants;

import java.io.File;

public class Constants {
    //资源存放根目录
    public static final String WEB_ROOT = System.getProperty("user.dir") + File.separator + "webroot";
    public static final int PORT = 6688;
    public static final String ERROR_MESSAGE = "HTTP/1.1 404 File Not Found\r\n" +
            "Content-Type: text/html; charset=utf-8\r\n" +
            "Content-Length: 34\r\n" +
            "\r\n" +
            "<h1>File Not Found 文件未找到</h1>";

    public static final String SERVER_ERROR_MESSAGE = "HTTP/1.1 500 Server Error\r\n" +
            "Content-Type: text/html; charset=utf-8\r\n" +
            "Content-Length: 19\r\n" +
            "\r\n" +
            "<h1>服务器错误</h1>";
}
